<template>
    <div class="wrap" v-if="show">
        <div>{{text}}</div>
        <br> <br>
        <div class="btngroup">
            <div @click="ok">ok</div>
            <div @click="esc">esc </div>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {}
        },
        methods: {
            ok() {
               
            },
            esc() {}
        }
    }
</script>

<style lang="less" scoped>
    .wrap {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 10px;
        position: fixed;
        width: 100px;

        top: 50%;
        left: 50%;
        border-radius: 10px;

    }

    .btngroup {
        display: flex;
        justify-content: space-between;
        div{
            background: white;
            color: red;
        }
    }
</style>